Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

450
Visualizações
Reselect error: createSelector expects all input-selectors to be functions, but received the following types: [undefined, function memoized()]

I have tests that keep failing and throwing the following error:

createSelector expects all input-selectors to be functions, but received the following types: [undefined, function memoized()]

I have realised it is because of this function that the error is being thrown:

export const rejectedConsignmentEventsToMapOfConsignmentIdsToEventMap = createImmutableEqualSelector(
      eventsSelector,
      (events) =>
        events
          .filter((ce) => ce.get('type') === EventType.REJECTED)
          .valueSeq()
          .groupBy((it) => it.get('packageId'))
    )

I am not sure why is this causing an issue, when the following function that looks pretty much the same is not:

export const eventsToMapOfPackageIdsToEventMap = createImmutableEqualSelector(
  eventsSelector,
  (events) => events.valueSeq().groupBy((it) => it.get('packageId'))
)

When I am running my app, everything works fine and as expected, no errors are thrown, only when I am running tests I get this error. What am I doing wrong here with the first function, why it is causing this error?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda